﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace Clipper.Model.ViewModel
{
    /// <summary>
    /// 标准曲线VM
    /// </summary>
    public class StandardCurveVM:AbstractModel
    {
        private ObservableCollection<CurvePoint> _currentCurve;
        /// <summary>
        /// 当前曲线数据
        /// </summary>
        public  ObservableCollection<CurvePoint> CurrentCurve
        {
            get
            {
                if (_currentCurve == null)
                {
                    _currentCurve = new ObservableCollection<CurvePoint>();
                }
                return _currentCurve;
            }
            set
            {
                _currentCurve = value;
                NotifyPropertyChanged("CurrentCurve");
            }
        }
        static StandardInfo _calcStandardInfo;
        /// <summary>
        /// 浓度计算曲线
        /// </summary>
        public static StandardInfo CalcStandardInfo
        {
            get
            {
                return _calcStandardInfo;
            }
            set
            {
                _calcStandardInfo = value;
            }
        }
    }
}
